package com.zoro.dyformservice.business.device.entity;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;

import java.util.Date;

/**
 * @author zhaoxingwu
 */
@Entity
@Table(name = "df_user_device")
public class UserDeviceEntity {

    @Id
    @Column(name = "device_id")
    private String deviceId;
    @Column(name = "user_id")
    private String userId;
    @Column(name = "device_name")
    private String deviceName;
    @Column(name = "allocate_date")
    private Date allocateDate;

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public Date getAllocateDate() {
        return allocateDate;
    }

    public void setAllocateDate(Date allocateDate) {
        this.allocateDate = allocateDate;
    }

    @Override
    public String toString() {
        return "UserDeviceEntity{" +
                "deviceId='" + deviceId + '\'' +
                ", userId='" + userId + '\'' +
                ", deviceName='" + deviceName + '\'' +
                ", allocateDate=" + allocateDate +
                '}';
    }
}
